package com.woniuxy.charin.provider;

import com.woniuxy.charin.model.dto.ChargingData;
import org.springframework.stereotype.Component;

@Component
public class ChargingDataProvider {
    public ChargingData getChargingData(String pileNumber) {
        // 示例逻辑：根据充电桩编号返回充电数据
        ChargingData data = new ChargingData();
        data.setChargingPileNumber(pileNumber);
        data.setChargingPower(55.0);
        data.setChargingCost(61.81);
        return data;
    }
}